//
//  ScreentoneCell.m
//  OperationPro
//
//  Created by Mac on 2016/10/14.
//  Copyright © 2016年 展鸿科技. All rights reserved.
//

#import "ScreentoneCell.h"
#import "ScreentoneModel.h"

@interface ScreentoneCell()
@property (nonatomic, strong) UILabel *textLab;
@property (nonatomic, strong) UILabel *line;

@end
@implementation ScreentoneCell

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (void)initView{
    [super initView];
    self.textLab=[[UILabel alloc]initWithFrame:CGRectMake(25, 5, WindowWidth-35, 44)];
    self.textLab.font =F(15);
    self.textLab.frame =CGRectMake(25, 5, WindowWidth-35, 44);
    self.textLab.textColor=C(@"858585");
    [self addSubview:self.textLab];
    self.line=[[UILabel alloc]initWithFrame:CGRectMake(25, 43.5, WindowWidth-25, 0.5)];
    [self.contentView addSubview: self.line];
    self.selectionStyle =UITableViewCellSelectionStyleNone;
    [CClass layoutDottedLineWithoriginY:44 WithAddSubview:self];
}

- (void)setModel:(ScreentoneModel *)model{
     self.line.backgroundColor =LineColor;
    self.textLab.text = model.S_name;
}

+ (float)getCellHeightByModel:(id)model{
    return 44;
}

@end
